<div class="easyui-panel" data-options="fit:true,border:0" style="width:80%;padding: 40px 80px;">
    <div class="form-row">
        <div class="alert-warning">
            <div class="alert-icons"></div>
            <b>这是商城支付的主要配置文件，如无特殊需要请勿自行修改，谢谢。</b>
        </div>
    </div>
    <form id="mpSettingForm" name="mpSettingForm" action="${base}/admin/wechat/updateMCHInfo.do" method="POST">
        <div class="form-row">
            <label class="label-top">微信商户ID:</label>
            <input name="mchId" id="mchId" class="easyui-textbox theme-textbox-radius"
                   data-options="required:true">
        </div>
        <div class="form-row">
            <label class="label-top">API密钥:</label>
            <input name="mchKey" id="mchKey" class="easyui-textbox theme-textbox-radius"
                   data-options="required:true">
        </div>
        <div class="form-row">
            <label class="label-top">安全证书:</label>
            <input id="certPath" class="easyui-filebox theme-textbox-radius"
                   data-options="buttonText:'选择',required:true">
            <input type="text" name="certPath"  id="certPathTmp">
        </div>
        <div class="form-row">
            <label class="label-top">证书密码:</label>
            <input name="certPswd" id="certPswd" class="easyui-passwordbox theme-textbox-radius" data-options="required:true">
        </div>

    </form>
</div>

<div style="position: absolute;bottom: 0px;left:0px; width:100%; z-index:9999; text-align: center; background-color:rgba(34, 36, 38, 0.15)">
    <a href="#" class="easyui-linkbutton button-orange button-xs l-btn l-btn-small" style="font-size:12px;width: 40%">
        <span class="l-btn-left">
            <span class="l-btn-text">
                <i class="iconfont">&#xe6b1;</i> 更新商户配置
            </span>
        </span>
    </a>
</div>


<script>
    $(function () {

        reloadMPFrm();

        $('#refreshBtn').bind('click', function () {
            reloadMPFrm();
        });

        $('#submitBtn').bind('click', function () {
            submitFrm('mpSettingForm', '更新商城支付信息');
        });
    });

    function reloadMPFrm() {
        reloadFrm('mpSettingForm', '${base}/admin/wechat/getMPInfo.do');
    }
</script>
